/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ function(module, exports, __webpack_require__) {

	//var Checkbox = UcsmyUI.Checkbox;
	var Checkbox = __webpack_require__(8);
	var Root = React.createClass({displayName: "Root",
	    handler: function() {
	        console.log('点击事件');
	    },
	    render:function(){
	        return (
	            React.createElement("div", null, 
	                React.createElement("h2", null, "复选框 Checkbox"), 
	                React.createElement(Checkbox, {checked: true, id: "checkbox1", value: "复选框1", text: "协议书"}), 
	                React.createElement(Checkbox, {checked: true, id: "checkbox2", value: "复选框2", onclick: this.handler})
	            )
	        )
	    }
	});
	ReactDOM.render(React.createElement(Root, null),document.getElementById('main'));

/***/ },

/***/ 8:
/***/ function(module, exports) {

	var Checkbox = React.createClass({displayName: "Checkbox",
	    getDefaultProps:function(){
	        return{
	            id: "",
	            value: ""
	        }
	    },
	    handler: function (e) {
	        var _input = e.target || e.srcElement,
	            _checked = _input.checked;
	        this.props.onclick && this.props.onclick(_checked);
	    },
	    render: function () {
	        //var checked = props.checked?props.checked:'';
	        var checked = this.props.checked ? true : false;
	        //console.log(typeof(checked));
	        var className = this.props.className ? ('ucs-checkbox-input ' + this.props.className) : 'ucs-checkbox-input';
	        var text = this.props.text ? this.props.text : '';
	        return (
	            React.createElement("label", {className: "ucs-checkbox"}, 
	                React.createElement("input", {type: "checkbox", checked: checked, id: this.props.id, value: this.props.value, className: className, 
	                       onclick: this.handler.bind(this)}), 
	                React.createElement("span", {className: "ucs-checkbox-text"}, text)
	            )
	        )
	    }
	});

	module.exports = Checkbox;




/***/ }

/******/ });